module.exports = {
    //Solution For Issue:You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
    //zhengkai.blog.csdn.net
    runtimeCompiler: true,
    publicPath: './',
    outputDir: '../electron/web',
    // configureWebpack: (config) => {
    //   config["performance"] = {
    //     "maxEntrypointSize": 10000000,
    //     "maxAssetSize": 30000000,
    //   }
    //
    // },
    // configureWebpack: {
    //     node: {
    //         global: false
    //     },
    //     plugins: [
    //         new webpack.DefinePlugin({
    //             global: "window"
    //         })
    //     ]
    // },

    configureWebpack: {
        devtool: 'source-map' // 或使用 'cheap-source-map'
    },
    chainWebpack: config => {
      config
        .plugin('html')
        .tap(args => {
          args[0].title= 'tbox例系统' // 设置title
          return args
        })
    },
    css: {
      loaderOptions: {
          less: {
              modifyVars: {
                //在此处设置，也可以设置直角、边框色、字体大小等
                // 'primary-color': '#07C160',
                  'primary-color': '#1890ff',
              },
              javascriptEnabled: true
          }
      }
    },
  }
